/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: PACKAGE_NAME
 * @ClassName: Car
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/10/10 15:36
 * @Copyright 金斗版板所有
 */
public class Car extends Vehicle {
    private int loader;

    public  Car(){

    }

    public Car(int loader,int wheels, int weight) {
        super( wheels,  weight);
        this.setLoader(loader);
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }
    public void laPerson(){
        System.out.println(this.getWheels()+"四个轮子的小车能拉"+this.getLoader()+"人"+"总共有"+this.getWeight());
    }
}
